package com.jxm.spring.security.mapper;

import com.jxm.spring.security.bean.Menu;
import com.jxm.spring.security.bean.Role;
import com.jxm.spring.security.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author jxm
 * @since 2021-05-16
 */
public interface UserMapper extends BaseMapper<User> {

    List<Role> findRoleByUserId(Long userId);

    List<Menu> findAuthByUserId(Long userId);
}
